#include <iostream>
#include <string>
#include "mysql/mysql.h"
using namespace std;
int  main()
{
  const char* username ="liao";
  const char*  passcode ="liao";
  MYSQL mysql;
  mysql_init(&mysql);
  mysql_real_connect(&mysql,"localhost",username,passcode,"liaodb",3306,NULL,0);
  string sql="insert into dept values(60,'songbo','NEWYORK')";
  mysql_query(&mysql,sql.c_str());
  mysql_close(&mysql);

}
